<?php
$datefromArray = explode("-", $date_from);
switch ($datefromArray[1]) {
	case "01":
	$month_from = "Jan";	
	break;
	case "02":
	$month_from = "Feb";
	break;
	case "03":
	$month_from = "Mar";
	break;
	case "04":
	$month_from = "Apr";
	break;
	case "05":
	$month_from = "May";
	break;
	case "06":
	$month_from = "Jun";
	break;
	case "07":
	$month_from = "Jul";
	break;
	case "08":
	$month_from = "Aug";
	break;
	case "09":
	$month_from = "Sep";
	break;
	case "10":
	$month_from = "Oct";
	break;
	case "11":
	$month_from = "Nov";
	break;
	case "12":
	$month_from = "Dec";
	break;
	}
	
if ($datefromArray[2] >= 10) {
	$day_from = $datefromArray[2]; }
else {		
	switch ($datefromArray[2]) {
	case "01":
	$day_from = "1";	
	break;
	case "02":
	$day_from = "2";
	break;
	case "03":
	$day_from = "3";
	break;
	case "04":
	$day_from = "4";
	break;
	case "05":
	$day_from = "5";
	break;
	case "06":
	$day_from = "6";
	break;
	case "07":
	$day_from = "7";
	break;
	case "08":
	$day_from = "8";
	break;
	case "09":
	$day_from = "9";
	break;
	}
}	
	
if ($date_to != "0000-00-00") {	
	$datetoArray = explode("-", $date_to);
	switch ($datetoArray[1]) {
	case "01":
	$month_to = "Jan";	
	break;
	case "02":
	$month_to = "Feb";
	break;
	case "03":
	$month_to = "Mar";
	break;
	case "04":
	$month_to = "Apr";
	break;
	case "05":
	$month_to = "May";
	break;
	case "06":
	$month_to = "Jun";
	break;
	case "07":
	$month_to = "Jul";
	break;
	case "08":
	$month_to = "Aug";
	break;
	case "09":
	$month_to = "Sep";
	break;
	case "10":
	$month_to = "Oct";
	break;
	case "11":
	$month_to = "Nov";
	break;
	case "12":
	$month_to = "Dec";
	break;
	}	
	
if ($datetoArray[2] >= 10) {
	$day_to = $datetoArray[2];
}
else {	
	switch ($datetoArray[2]) {
	case "01":
	$day_to = "1";	
	break;
	case "02":
	$day_to = "2";
	break;
	case "03":
	$day_to = "3";
	break;
	case "04":
	$day_to = "4";
	break;
	case "05":
	$day_to = "5";
	break;
	case "06":
	$day_to = "6";
	break;
	case "07":
	$day_to = "7";
	break;
	case "08":
	$day_to = "8";
	break;
	case "09":
	$day_to = "9";
	break;
	}
	
	}
} // End IF	
	
	
?>
